[cs/java] only generate TCast for overloaded constructor arguments (see #3379)