reworked attr_numeric() to report failures