Support outputting the results of ip2long directly

Since the IPv4 class already handles the IP as an integer anyway, allow it as a formatting option. It's handy for database lookups.