Adds MonetDB support for index creation w/ ByteKeys

This commit adds full MonetDB support for creating the PreAggregate
index with ByteString keys. Also adds several additional checks on
dependent SQL functions.