Check for digit length in numeric array.s
Fix error messages for wrong return types.