[fix] Only supply strings as name for the constructor
[fix] Inherit the name of the object for array values