Squash a few warnings (thanks wornout).

Array to string conversion was being done when _initiate_callbacks()
erroneously returned a results array which the core tried to append to a
string return value.

Also: missing prefs global was causing a warning.