MDL-43365 lib: changed renamedclasses.php format to array

Separate commit to change the format of renamedclasses.php to use
an array instead of global calls.
This makes it consistent with other files in the db directory.