Add is_type() method.
Add checking for types in mergers.
Fix whitespace