Fix bug in ORM that will cause property miss.

Change Session unit to use new Cache core.