Adding @tangelo.types decorator (along with unit test).

Closes #285
Merge branch 'typed-services'