fixed a bug where the through association was not properly connecting the relation
fixed an issue on the many-to-many fix where it was not pulling the proper table name if it was specified explicitly in the model
Fixed an issue that crashes Serialization

PHPAR errors when trying to serialize an object that belongs to a null object. By adding an is_null check, it seems to correctly apply an empty array.
moved the many-to-many through test to it's own test
Merge remote, keep my changes in comments (or merge their with my)