Parser: fix: moved expression outside assert() in skip().

* Otherwise it's removed from release builds.
* Simplified an if-statement in parseEnumDecl().