added tests for automatic casting on function models args and return value
added tests for automatic casting on function models args and return value

sylvainpolletvillard/ObjectModel,sylvainpolletvillard/ObjectModel,sylvainpolletvillard/ObjectModel