Implemented AsMap and the ability to introspect into a pipeline. Fixed #288