Added support for ApplyDynamic (structural method call).
Fixed truncation from doubles to ints and longs.