SamHeader: add n_sequences member function

* add n_sequences member function to allow iteration over the reference sequences
* make const member functions const (they weren't for some reason)
* inline simple member functions