libr/core/cmd_anal refactoring and cleanup