More fixes for parsing files with comments

git-svn-id: https://svn.code.sf.net/p/ifcopenshell/svn@241 68180887-8925-40e4-aed3-789c086970ef