locationToTable
A fresh x/y/z/yaw/pitch/world table, sized for its six fields; world is left out when there is none.
locationToTable with the world name already made a Lua string, for a caller that builds many tables in one world; null leaves world out.