ECPair: throw if non-boolean compressed flag given

Also adds test for network option