Refactor ST_ConnectedComponents

Refactor ST_ConnectedComponents to use the new function helpers and to not crash when the optional argument `orientation` is omitted.
Fixes #21.
Merge #22 first.