Fixed the quantifiable resource demands validation

Fixed the validation methods for the quantifiable resource demands.
Fixed also the parser routing to identify quantifiable resources
as valid integer objects.