On benefits of network coding in bidirected networks and hyper-networks