Fix expectIntegerId bug (fix #999)

Parse `id` as integer if expectIntegerId option is enabled.