Added the ability to limit the size of a collection

As the title says, this patch adds the ability to limit the size of a collection by using a `limit` option in its definition.

My use case: in the home page of my website, I want to display the 10 last blog posts (and I don't want to write a template filter/function/operator ;-))