Full-price “Hamilton” tickets are out of reach for most New Yorkers, but Lin-Manuel Miranda’s free pre-show performances have entertained thousands of groundlings.