Add isconnected() method to Pattern, make 'io' and 'type' default Pattern attributes.