Fix warnings and a style fix.
Make ALE compile with gcc2.

To do so template member functions have been moved into a helper namespace.