Added error reports for range checking.
Added error reporting for enumeration checking.