Better serialisation of nested resources