instanceof checking in proxify is now correct.