Fixed bugs with foreign keys

[1] - Crash since NullPointerException on generateChangeLog in
ForeignKeyComparator.java.

[2] Composite foreign key generation now works
(ForeignKeySnaphotGenerator.java)