fix bug in getContainingElement() found by andrew, allow sciprting interface to return properties of local only entities