Make metadata.rb more compliant

Make metadata.rb more compliant - only string or array types are supported; default cannot be a hash.