api/art: report proper error on non-integer size parameter, update tests and documentation