Add the value, reference and typed factories.