Formatting

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Clean up specs.

Make some of the stubbing clearer and replaced custom implementation
with spies.

Signed-off-by: Jesse Zhang <jz@pivotallabs.com>
Added deprication warning for use of template with an Array

Signed-off-by: Yulia Tolskaya <ytolskaya@pivotallabs.com>