Fixes #1358

Buffer essentially needs handling like a base type, as far as I can tell. That, and isHash should really encapsulate the logic of finding actual hashes rather than JS objects.