Where Do You Think You're Going?: Inferring Beliefs about Dynamics from Behavior