fix whitespace handling in prefix expression and simplify local declaration parsing