KNL-1026 Allow objects to be passed through to bind to the SQL.

If we force everything to strings some prepared statements fail to work. Allowing objects means when we set the values in the prepared statement integers/dates/etc work as expected.

git-svn-id: https://source.sakaiproject.org/svn/kernel/trunk@120458 66ffb92e-73f9-0310-93c1-f5514f145a0a
KNL-1026 Use Commons Lang for concatenation of arrays.

git-svn-id: https://source.sakaiproject.org/svn/kernel/trunk@120459 66ffb92e-73f9-0310-93c1-f5514f145a0a