Merge "registration: Improve error message if a non-array attribute is set"