Fixes End issue inside Select statements.
Removed "refs" field from Object. Not required for Boehm GC.