42717975 expose sample uuid in the plate json

Add method to_hash_stream in core_resource.rb and call it both in core_resource#to_stream and in resource#hash_to_stream. Fix the specs to reflect this change.