weakref not needed for Parameters.template

Turns out removing the __del__ method on Parameter was enough
to make the garbage collector collect the cycle. With weakref,
Template could be collected to early, since Parameters doesn't
keep a fixed list.
Handle integers as parameter values

- No need to trow TypeError, just convert to strings.
- Introducing six for working with Python2/3 types.