Fix to port range for ACL Rules

Set the correct type for ports when a range is specified and fixed a
small bug when setting the endport.