Fixed issue in p_error routine that was causing the method to look for a 't'
object (should have been p, the parameter token object).

Added unit test to catch a basic type exception thrown from the parser on a
set with no distance listed.