[Backend] Fixed methods to sanitize lists. Added method to cast/combine array(s) to object.