Fixes to entity parenting code. Switch the entity's parent in the 3d scene when parent changes.