Added mask shape check in tenfit

Seems like the old code wasn't checking if the mask was the same shape as the data, so I stole the snippet in peaks_from_model. 

If the mask could be broadcasted to a valid shape, the code would run and give random results, not the maks and the data must be identical for the fit method to run.