random generator bugfix

- fixed problem with random generators copying random engine on
  construction rendering the singleton engine concept ineffective
- placed guard against such incident happening in the future
- reformatted some template parameters to improve code style