Fix create_impl when attributes is an array

Let me know if you would like spec coverage for this.