Implemented support for Rails 4.0

Fixed wrong unserialize call (needs the value as argument, which is weird).

Use #load to eagerly load a relation, use #to_a to convert to array (which also
triggers load).
Add test_after_commit correctly
Pending spec works (probably due to test_after_commit gem)