Detect BasicObject more accurately