Added support for .eq(-N), .first(), and .last(). Fixes #2164 and #4188.