Make stream operator<< for ArrayRef public

It is useful for debugging.
Documentation asserts
const modifiers for documentation