token: Update functional interface and add token_copy(), token_equal().