Prototype pattern, problems with 'auto'