Opal #hash compliance

Moved from #293 

cc: @YorickPeterse