Rumple cut off his shadow with his dagger.
Pan has a dagger, and could have very well removed his own shadow in the same way.
Rumple can take hearts.
Who’s to say that Pan can’t take hearts too.
I like the idea of Henry having to give up his heart willingly. The scene where Emma’s heart couldn’t be taken may well have been foreshadowing that Henry’s special brand of heart can’t just be taken against his will either.