Bug fix to network.R (thanks to Joshua Ulrich!) and further development of abstract types.