fixed null returned by getSomeFK() when SOME_ID column hadn't been fetched as part of the original query
fixed long-to-int cast error when the db returns a long as the auto-genned pk