Prefix parameters don't mix well with comments

The parameterparser class currently does not support prefixes to be commented, e.g.

[myprefix] # explanation of my prefix
key = value

ignores the prefix entirely.