Use integer when appropriate in autoscaling schema

The patch starts using integers in the autoscaling schema, removing the
needs to cast everywhere we use the properties in the code. We now
provide a backward compatible cast so we should be fine.

Change-Id: I828557dff4b08247b6b441bb3dff1b82153cf5cb
Merge "Use integer when appropriate in autoscaling schema"