Fixes #567, in rhino also check for java.lang.Object
snapshot