Fix slicing pre node with function on connection

- Can now connect from a node with slicing and a function
- Added test for this case in test_connection