Autoscaling: compare fully-resolved templates

The Resource.t snippet is a parsed but unresolved template snippet. In
practice there should be no intrinsic functions included to resolve at the
moment, but in principle we should do comparisons on the fully-resolved
result.

Change-Id: I12d2e7c8282ddfbb7cca4930ef557ce3856a88b5