From Christopher Nolan to James Cameron, many great movie-makers have drawn inspiration from their subconscious minds.