Rebasing #1101 to v0.10 branch

Fixes expectIntegerId bug (fix #999)
Parse id as integer if expectIntegerId option is enabled in REST blueprints configuration.