Added Address.isSameType method + small bug fixes.

... Removed some dead code. Cleaned up error handling on Address.isEqual method implementation so that it throws a more meaningful error.