Fixes #1561

Now, a procedure with a private forward declaration and a public implementation will throw an error.
@Araq please look and make sure the error message is to your satisfaction. Also, I modified the lineInfoToStr proc so that it resembles the format of line information displayed on a compiler info/error/warning.