Entity: added constructor
Encoder: fixed encoding of Entity
added new syntax for entity chaining (experimental)