lua - use loaded node when possible when calculating bounding box (#7580)
closes #7580, logic is as follows:
- When ptr's base node is empty (i.e. unloaded) or is paged we must compute bounds on the ptr's template.
- Otherwise use the ptr's base node for bounds calculations. This is necessary because a loaded objects base node subgraph is potentially modified through things like animations and geometry morphs.