I really think this is a really bad idea.
here just some ways to exploit it:
1. get gold troops cheaper by switching races.
2. get lvl 15 human garrison which is really broken considering human garrisons are already strong.
3. build gold units with basically any type of resource you like.
I am sure there are way more ways to exploit this.