Fixes #4831: Change id reports type to bigint in psql, and Long in Scala

http://www.rudder-project.org/redmine/issues/4831