Add FirstAndLast methods. Refine Travis-CI settings.