Improve ProtDeclaration error formatting.

Now includes actual protection attribute kind and package name (if any)
into error message. Also stores location information from the parser.
Do not generate code for protection tests