I looked at McPherson's approach for inlining libraries. I had developed my own approach years ago out of necessity. It may not be as elegant as McPherson's (although I can't evaluate that since I don't really understand it), but it works. My script that refers to the library simply has a bunch of lines like this:
function onOpen(e) {Library.onOpen(e);}
function someFunction {Library.someFunction;}
...
where someFunction is replicated for each of the functions that are menu item functions (I've got 16 of 'em in this 1 application).
Then when I want to test the library, I comment all of those lines, effectively bypassing the library, and copy/paste the library code below.
As I said, it ain't elegant but it works and I understand it, which is what matters.
Bill