Added @RefCache

It will include values that will be cached inside a reference
Improved @RefCache

It plays nicely with updates (even with @Deferred). Also fixed several issues with `$pull` when removing elements from an array.
minor changes in the templates