fixed parsing of octal and hexadecimal numbers - fixes #25