Classes bound by name into container were not receiving parameters

resending #3791 as requested.