Adjust beyond end of clip frame requests
Fix a bug introduced in the C++11 changes
Change 2 clip array arguments to two separate clips
Add locking for registerFunction