Fix allow_comments= to accept a parameter

@timoschilling I made a small mistake in my previous PR.