Free topological groups of spaces and their subspaces