Update upper alex version bound to 3.1.2.
Ask travis to build with GHC HEAD too.