Dependency on base 4.7 allowed

Needed to make this tweak in order to build gloss-examples with ghc 7.8 rc2

Also note the change in Data.Array.Repa.Algorithms.Matrix, which I made without understanding the types (obviously a dangerous thing to do).