rose metadata: len function for fail-if, warn-if, etc

Closes #500.

Adds `len(this) < 3` type functionality to metadata.

@benfitzpatrick - please review.