Fix Piqi validation problem

Before the fix, the input below was treated as valid and the ".input int" was
being silently overridden by the explicit alias.

Now, "duplicate type definition" error is reported in such cases.

    .function [
        .name user

        .input int
    ]

    .alias [
        .name user-input
        .type string
    ]