Scala 2.10 support

Hi,

 I've just added Scala 2.10 support. The changes are fix of a warnings and compilation problems with new Scala. I've checked that all tests are passed both for Scala 2.9.1 and 2.10.0.

--
Regards,
Mike.