completions should also have the parent attribute -> move parent to BaseDefinition
fix completion on int literals, fixes #327