Added debugging statement for examining sandbox checking.
Cleanup awkward code
FIXED: Call goal_expansion/2,4 for sandboxed loading.
Updated pengines