Fix null pointer dereference in pform debug output.
Reinstate error recovery for range expressions.

If an error is found whilst elaborating a range expression in a signal
declaration, create a dummy range and continue elaboration. This stops
the compiler reporting an error every time that signal is referenced.