inspect and toString implementations for #265