[FIX] [CLEAN] Various: fixed / cleaned use of dict.fromkeys.

Indeed using fromkeys with a list / dict as argument leads to the creation
of shared list / dict. This could create some ugly side effects when
used in loops. This commit fixes or cleans this kind of statement to avoid
unwanted side effects.