BUG: do not check for comments within the metadata

@danknights, can you review this please? The issue is that it is metadata values of `foo #stuff` are treated as comments, which breaks parsing. I don't see a way to enforce that this only treats lines that _start_ with `#` as comments, but would prefer to do that if you know how.