Put of transient map now returns the old value in case that key was present.

This is analogues to Java's put definition.
Adding test case that check dynamic types after map updates (same key, other value with different type).
Another simple test.