Getting object and non-object mode to work with Session#get.