PLAT-611: Updated create_attribute() data-type to work for both array & string as data input