Fix for issue #847

The GUFuncBuilder needs to remember the order in which signatures
were specified in order to select the correct implementation for
function dispatch. This commit implements this based on similar
functionality in UFuncBuilder.

Many thanks to @shoyer for reporting the issue and @sklam for suggesting the fix.