ContainerBuilder: checks for function/property name validity