Fix data type getting, return vector or coverage instead of layers