Workaround gcc 4.2's problem with the sequential implementation of general_copy.

Fixes #420
Don't use typed less<T> in the implementation of binary search algorithms.

Fixes #417
Merge pull request #425 from jaredhoberock/miscellaneous-small-fixes

Miscellaneous small fixes